*/
abstract class WebInstallerPage {
+ /**
+ * The WebInstaller object this WebInstallerPage belongs to.
+ *
+ * @var WebInstaller
+ */
+ public $parent;
+
public abstract function execute();
- public function __construct( $parent ) {
+ public function __construct( WebInstaller $parent ) {
// TODO: This field is not defined??
$this->parent = $parent;
}
$this->parent->output->outputWarnings();
$s = "<div class=\"config-submit\">\n";
$id = $this->getId();
+
if ( $id === false ) {
$s .= Xml::hidden( 'lastPage', $this->parent->request->getVal( 'lastPage' ) );
}
+
if ( $continue ) {
// Fake submit button for enter keypress
$s .= Xml::submitButton( wfMsg( "config-$continue" ),
array( 'name' => "enter-$continue", 'style' => 'display:none' ) ) . "\n";
}
+
if ( $id !== 0 ) {
$s .= Xml::submitButton( wfMsg( 'config-back' ),
array(
'tabindex' => $this->parent->nextTabIndex()
) ) . "\n";
}
+
if ( $continue ) {
$s .= Xml::submitButton( wfMsg( "config-$continue" ),
array(
'tabindex' => $this->parent->nextTabIndex(),
) ) . "\n";
}
+
$s .= "</div></form></div>\n";
$this->addHTML( $s );
}